home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3baudiocuefilewritingjob.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.8 KB  |  80 lines

  1. /* 
  2.  *
  3.  * $Id: k3baudiocuefilewritingjob.h 619556 2007-01-03 17:38:12Z trueg $
  4.  * Copyright (C) 2005 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16. #ifndef _K3B_AUDIO_CUE_FILEWRITING_JOB_H_
  17. #define _K3B_AUDIO_CUE_FILEWRITING_JOB_H_
  18.  
  19. #include <k3bjob.h>
  20. #include "k3b_export.h"
  21. class K3bAudioDoc;
  22. class K3bAudioJob;
  23. class K3bAudioDecoder;
  24. class K3bThreadJob;
  25. namespace K3bDevice {
  26.   class Device;
  27. }
  28.  
  29.  
  30. class LIBK3B_EXPORT K3bAudioCueFileWritingJob : public K3bBurnJob
  31. {
  32.   Q_OBJECT
  33.  
  34.  public:
  35.   K3bAudioCueFileWritingJob( K3bJobHandler*, QObject* parent = 0, const char* name = 0 );
  36.   ~K3bAudioCueFileWritingJob();
  37.  
  38.   K3bDevice::Device* writer() const;
  39.     
  40.   QString jobDescription() const;
  41.   QString jobDetails() const;
  42.  
  43.   const QString& cueFile() const { return m_cueFile; }
  44.  
  45.  public slots:
  46.   void start();
  47.   void cancel();
  48.  
  49.   void setCueFile( const QString& );
  50.   void setSpeed( int s );
  51.   void setBurnDevice( K3bDevice::Device* dev );
  52.   void setWritingMode( int mode );
  53.   void setSimulate( bool b );
  54.   void setCopies( int c );
  55.   void setOnTheFly( bool b );
  56.   void setTempDir( const QString& );
  57.  
  58.  private slots:
  59.   void slotAnalyserThreadFinished(bool);
  60.  
  61.  private:
  62.   void importCueInProject();
  63.  
  64.   K3bDevice::Device* m_device;
  65.  
  66.   QString m_cueFile;
  67.   K3bAudioDoc* m_audioDoc;
  68.   K3bAudioJob* m_audioJob;
  69.   K3bAudioDecoder* m_decoder;
  70.  
  71.   bool m_canceled;
  72.   bool m_audioJobRunning;
  73.  
  74.   class AnalyserThread;
  75.   AnalyserThread* m_analyserThread;
  76.   K3bThreadJob* m_analyserJob;
  77. };
  78.  
  79. #endif
  80.